package com.shop.product.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shop.product.dao.ProductOptDAO;
import com.shop.product.vo.ProductVO;

@Service
public class ProductOptServiceImpl implements ProductOptService {

	@Autowired
	private ProductOptDAO dao;
	
	@Override
	public int totalCnt() {
		return dao.totalCnt();
	}
	
	@Override
	public List<ProductVO.ProductOptMaster> listOptMaster(int current_page, int list_row_no) {
		return dao.listOptMaster(current_page, list_row_no);
	}
	
	@Override
	public int addOpt(ProductVO.ProductOptMaster tagItem) {
		return dao.addOpt(tagItem);
	}
	
	@Override
	public void updateOpt(ProductVO.ProductOptMaster tagItem) {
		dao.updateOpt(tagItem);
	}
	
	@Override
	public void deleteOpt(int seq) {
		dao.deleteOpt(seq);
	}
	
	@Override
	public ProductVO.ProductOptMaster getOpt(int seq) {
		
		return dao.getOpt(seq);
	}
}
